package com.sw.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigInteger;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "block")
public class BlockInfo extends BasePojo {
    @TableId(type = IdType.ASSIGN_UUID)//设置唯一主键
    private BigInteger number;
    private String hash;
    private String parentHash;
    private String miner;
    private BigInteger difficulty;
    private BigInteger size;
    private BigInteger gasLimit;
    private BigInteger gasUsed;
    private String timestamp;
    

}
